import { request } from '@/common/js/request.js'

// 查询字典类型列表
export function listType(query) {
  return request({
    url: '/admin-api/system/dict-type/page',
    method: 'get',
    params: query
  })
}

// 查询字典类型详细
export function getType(dictId) {
  return request({
    url: '/admin-api/system/dict-type/get?id=' + dictId,
    method: 'get'
  })
}

// 获取字典选择框列表
export function listAllSimple() {
  return request({
    url: '/admin-api/system/dict-type/list-all-simple',
    method: 'get'
  })
}
